#ifndef sensors_h
#define sensors_h


/************************************************************************************************* 

	Name: SENSORS_H
	Autor: JA&AP
	
	Contains: 
				File containing all the functions related to the Sensors.
				
				
**************************************************************************************************/

#include "structures.h"
#include "ir.h"
#include "bumpers.h"
#include "battery.h"

/*************************************************************************
Routine: 	READIR
Purpose:  	Reads the value of each one of the IR sensors
In:			void
Out:		char value that contains the result of the IR register
**************************************************************************/
//unsigned char sensors_getIR(void);
#define sensors_getIR() ir_read()
#define sensors_getBumpers() bumpers_getState()
#define sensors_getBattState() battery_getState();
#define sensors_getBattVoltage() battery_getVoltage();

void sensors_readAll(sensors *sens);
/*************************************************************************
Routine: 	CONFIGIR
Purpose:  	Configure the hardware that deals with the IR Sensors.
In:			float frequency of update
Out:		void
**************************************************************************/
void sensors_init(void);


#endif
